//
//  JMTestViewController.m
//  分页控制器
//
//  Created by JackMeng on 16/3/18.
//  Copyright © 2016年 JackMeng. All rights reserved.
//

#import "JMTestViewController.h"
#import "JMLeftViewController.h"
#import "JMMiddleViewController.h"
#import "JMRightViewController.h"
#import "chaxunbenjiViewController.h"

@interface JMTestViewController ()

@end

@implementation JMTestViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.title = @"会员事务部";
    self.leftMenuTitle = @"省本级企业会员";
    self.middleMenuTitle = @"支会企业会员";
    self.rightMenuTitle = @"企业基础库";
    
    self.leftViewController = [[JMLeftViewController alloc] init];
    self.middleViewController = [[JMMiddleViewController alloc] init];
    self.rightViewController = [[JMRightViewController alloc] init];
      UIBarButtonItem *rightButton = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"search"]  style:UIBarButtonItemStylePlain target:self action:@selector(rightButtonAction)];
//rightButton.frame = CGRectMake(0, 0, 44, 44);
//[rightButton addTarget:self action:@selector(rightButtonAction:) forControlEvents:UIControlEventTouchUpInside];

//[rightButton setImage:[UIImage imageNamed:@"search"] forState:UIControlStateDisabled];
// 

    [self.navigationItem setRightBarButtonItem:rightButton];
    self.view.backgroundColor = [UIColor whiteColor];

}
- (void)rightButtonAction{

chaxunbenjiViewController *vc  = [[chaxunbenjiViewController alloc]init];
[self.navigationController pushViewController:vc animated:YES];


}
@end
